package com.kuaimacode.kframework.mybatis.models.admin;

import lombok.Data;


import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 权限
 */
@Data
@TableName("sys_admin_permission")
public class SysAdminPermission implements java.io.Serializable {
	
	
	/**
	 * 
	 */
	@TableField(exist=false)
	private static final long serialVersionUID = 1L;

	@TableId(value = "permission_id", type = IdType.AUTO)
	private Long permissionId;

	@TableField("permission_name")
	private String permissionName;

	@TableField("permission_type")
	private Integer permissionType;

	@TableField("url")
	private String url;

	@TableField("percode")
	private String percode;

	@TableField("parent_permission_id")
	private Long parentPermissionId;

	@TableField("sort")
	private Integer sort;

	@TableField("is_available")
	private Boolean isAvailable;

	@TableField("icon")
	private String icon;

	/**
	 * 该权限下所有子权限
	 */

	@TableField(exist=false)
	private  List<SysAdminPermission> childList;
}